package com.epfresh.bean;

import java.util.List;

/**
 * Created by wzh on 2016/3/31.
 */
public class NewOrder {

    /**
     * tags : [{"color":"#0077ff","name":"热销"},{"color":"#ff0000","name":"特价"}]
     * depositRatio : 15
     * origin : 陕西铜川
     * unitPrice : 0.01
     * mark : http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F0%2F12%2F1452541803236_%E7%BB%84-69%403x.png-PRODUCTMARK
     * pack : 1公斤/箱
     * type : 2
     * id : 38
     * unit : 箱
     * title : 铜川桃花源燕红桃子 绝对新鲜 当季特卖 
     * price : 0.01元/箱
     * thumbnail : http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F0%2F12%2F1452592767191_2.png-PRODUCTTHUMBNAIL
     * level : 一级
     * leastCount : 0
     * saleDeadline : 
     * marketingTime : 2016年01月
     * notice : 这里是预售商品的须知，请查看：
     */

    private ProductBean product;
    /**
     * product : {"tags":[{"color":"#0077ff","name":"热销"},{"color":"#ff0000","name":"特价"}],"depositRatio":"15","origin":"陕西铜川","unitPrice":"0.01","mark":"http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F0%2F12%2F1452541803236_%E7%BB%84-69%403x.png-PRODUCTMARK","pack":"1公斤/箱","type":2,"id":38,"unit":"箱","title":"铜川桃花源燕红桃子 绝对新鲜 当季特卖 ","price":"0.01元/箱","thumbnail":"http://7xp3p0.com2.z0.glb.qiniucdn.com/2016%2F0%2F12%2F1452592767191_2.png-PRODUCTTHUMBNAIL","level":"一级","leastCount":0,"saleDeadline":"","marketingTime":"2016年01月","notice":"这里是预售商品的须知，请查看："}
     * lastSnapshotId : 606
     * deliveryModes : [{"desc":"配送","value":"distribution"},{"desc":"自提","value":"pickUp"}]
     * lowStockTip : 预计3-4天内送达
     * supplier : E批生鲜
     * supplyChannels : {"desc":"平台中转供货","value":"platformHosting"}
     * deliveryAddress : {"fullAddress":null,"provinceId":31,"cityId":31,"districtId":310107,"address":"中江路111号","provinceName":"上海市","cityName":"上海市","districtName":"普陀区","name":"小赵","phone":"13000000000","postcode":"","id":97}
     * depots : [{"id":1,"depotName":"上海松江区提货档口","cityId":31,"isHaveDelivery":true,"address":"上海市松江区九亭镇100号"},{"id":2,"depotName":"上海普陀区提货档口","cityId":31,"isHaveDelivery":true,"address":"上海市普陀区南大路101号"},{"id":3,"depotName":"上海浦东区提货档口","cityId":31,"isHaveDelivery":true,"address":"上海市浦东区高行镇102号"},{"id":4,"depotName":"上海南汇区提货档口","cityId":31,"isHaveDelivery":true,"address":"上海南汇区航头镇103号"},{"id":9,"depotName":"测试22","cityId":31,"isHaveDelivery":true,"address":"测试"},{"id":10,"depotName":"测试1","cityId":31,"isHaveDelivery":true,"address":"吃"},{"id":11,"depotName":"测试","cityId":31,"isHaveDelivery":true,"address":"22"},{"id":12,"depotName":"校验库位的操作","cityId":31,"isHaveDelivery":true,"address":"测试"},{"id":13,"depotName":"第二次测试","cityId":31,"isHaveDelivery":true,"address":"测试"},{"id":14,"depotName":"1","cityId":31,"isHaveDelivery":true,"address":"1"},{"id":15,"depotName":"11","cityId":31,"isHaveDelivery":true,"address":"11"}]
     */

    private int lastSnapshotId;
    private String lowStockTip;
    private String supplier;
    /**
     * desc : 平台中转供货
     * value : platformHosting
     */

    private ModeBean supplyChannels;
    /**
     * fullAddress : null
     * provinceId : 31
     * cityId : 31
     * districtId : 310107
     * address : 中江路111号
     * provinceName : 上海市
     * cityName : 上海市
     * districtName : 普陀区
     * name : 小赵
     * phone : 13000000000
     * postcode : 
     * id : 97
     */

    private DeliveryAddressBean deliveryAddress;
    /**
     * desc : 配送
     * value : distribution
     */

    private List<ModeBean> deliveryModes;
    /**
     * id : 1
     * depotName : 上海松江区提货档口
     * cityId : 31
     * isHaveDelivery : true
     * address : 上海市松江区九亭镇100号
     */

    private List<DepotsBean> depots;

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getLastSnapshotId() {
        return lastSnapshotId;
    }

    public void setLastSnapshotId(int lastSnapshotId) {
        this.lastSnapshotId = lastSnapshotId;
    }

    public String getLowStockTip() {
        return lowStockTip;
    }

    public void setLowStockTip(String lowStockTip) {
        this.lowStockTip = lowStockTip;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public ModeBean getSupplyChannels() {
        return supplyChannels;
    }

    public void setSupplyChannels(ModeBean supplyChannels) {
        this.supplyChannels = supplyChannels;
    }

    public DeliveryAddressBean getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(DeliveryAddressBean deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public List<ModeBean> getDeliveryModes() {
        return deliveryModes;
    }

    public void setDeliveryModes(List<ModeBean> deliveryModes) {
        this.deliveryModes = deliveryModes;
    }

    public List<DepotsBean> getDepots() {
        return depots;
    }

    public void setDepots(List<DepotsBean> depots) {
        this.depots = depots;
    }

    public static class ProductBean {
        private double depositRatio;
        private String origin;
        private double unitPrice;
        private String mark;
        private String pack;
        private int type;
        private String id;
        private String unit;
        private String title;
        private String price;
        private String thumbnail;
        private String level;
        private int leastCount;
        private String saleDeadline;
        private String marketingTime;
        private String notice;
        /**
         * color : #0077ff
         * name : 热销
         */

        private List<TagsBean> tags;

        public double getDepositRatio() {
            return depositRatio;
        }

        public void setDepositRatio(double depositRatio) {
            this.depositRatio = depositRatio;
        }

        public String getOrigin() {
            return origin;
        }

        public void setOrigin(String origin) {
            this.origin = origin;
        }

        public double getUnitPrice() {
            return unitPrice;
        }

        public void setUnitPrice(double unitPrice) {
            this.unitPrice = unitPrice;
        }

        public String getMark() {
            return mark;
        }

        public void setMark(String mark) {
            this.mark = mark;
        }

        public String getPack() {
            return pack;
        }

        public void setPack(String pack) {
            this.pack = pack;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public int getLeastCount() {
            return leastCount;
        }

        public void setLeastCount(int leastCount) {
            this.leastCount = leastCount;
        }

        public String getSaleDeadline() {
            return saleDeadline;
        }

        public void setSaleDeadline(String saleDeadline) {
            this.saleDeadline = saleDeadline;
        }

        public String getMarketingTime() {
            return marketingTime;
        }

        public void setMarketingTime(String marketingTime) {
            this.marketingTime = marketingTime;
        }

        public String getNotice() {
            return notice;
        }

        public void setNotice(String notice) {
            this.notice = notice;
        }

        public List<TagsBean> getTags() {
            return tags;
        }

        public void setTags(List<TagsBean> tags) {
            this.tags = tags;
        }

        public static class TagsBean {
            private String color;
            private String name;

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
    public List<ModeBean> paymentModes;

    public List<ModeBean> getPaymentModes() {
        return paymentModes;
    }

    public void setPaymentModes(List<ModeBean> paymentModes) {
        this.paymentModes = paymentModes;
    }

    public static class ModeBean {
        private String desc;
        private String value;

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public static class DeliveryAddressBean {
        private Object fullAddress;
        private String provinceId;
        private String cityId;
        private String districtId;
        private String address;
        private String provinceName;
        private String cityName;
        private String districtName;
        private String name;
        private String phone;
        private String postcode;
        private String id;

        public Object getFullAddress() {
            return fullAddress;
        }

        public void setFullAddress(Object fullAddress) {
            this.fullAddress = fullAddress;
        }

        public String getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(String provinceId) {
            this.provinceId = provinceId;
        }

        public String getCityId() {
            return cityId;
        }

        public void setCityId(String cityId) {
            this.cityId = cityId;
        }

        public String getDistrictId() {
            return districtId;
        }

        public void setDistrictId(String districtId) {
            this.districtId = districtId;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getProvinceName() {
            return provinceName;
        }

        public void setProvinceName(String provinceName) {
            this.provinceName = provinceName;
        }

        public String getCityName() {
            return cityName;
        }

        public void setCityName(String cityName) {
            this.cityName = cityName;
        }

        public String getDistrictName() {
            return districtName;
        }

        public void setDistrictName(String districtName) {
            this.districtName = districtName;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getPostcode() {
            return postcode;
        }

        public void setPostcode(String postcode) {
            this.postcode = postcode;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }

    public static class DepotsBean {
        private String id;
        private String depotName;
        private String cityId;
        private boolean isHaveDelivery;
        private String address;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getDepotName() {
            return depotName;
        }

        public void setDepotName(String depotName) {
            this.depotName = depotName;
        }

        public String getCityId() {
            return cityId;
        }

        public void setCityId(String cityId) {
            this.cityId = cityId;
        }

        public boolean isIsHaveDelivery() {
            return isHaveDelivery;
        }

        public void setIsHaveDelivery(boolean isHaveDelivery) {
            this.isHaveDelivery = isHaveDelivery;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }
    }
}
